Exploring optimization and caching for efficient collection operations