From Hash Tables to B-trees: Rethinking Core Data Structures for Scalable Performance