Moves filesystem management code into cache object.