Starting to unify al the cache and disk stuff into a common command. This pulls out one half of the stuff.