begin work on statistics caching. The basic mechanism (Stats.get(file)) seems to be fine. There are two problems left. (1) it doesn't eliminate NaNs / fillValue, yet. (2) The cache accept function seems wrong at first sight (doesn't recover cache after restart)