Added permanent caching to api