Fixed problem with statistics caching in memory.