Adding caching to json file