Setting up a caching infrastructure