caching of api