Caching mechanism using text files and json.