Smarter caching for increased performance.