Given a large dataset, how would you implement a structure to efficiently retrieve and update stock prices?