Cache datasets better.
Cache datasets better.

Only cache datasets that are not file-based and include a hash of the lumi
mask in the cache name, to avoid getting a dataset with an old lumi mask
out of the cache.

Fixes #465.

matz-e/lobster,matz-e/lobster,matz-e/lobster