rudimentary caching of jsons