Read/write the json cache only once in the Pelican class.