Update caching infrastructure to automatically resize when needed.