Optimized caching