caching for api enrtrypoint