Caching techniques for performance