[Cache] Make a this a lot more modular/reusable.
Do a Scalariform pass.