Cache setup for data caching and views