cacheing for json stats