Changed so that cached versions of json files are used if downloaded within the last 24 hours. This almost doubles performance.