set appropriate caching