Adding cache based on json files