Revert "cachematrix"

This reverts commit cf2ee212161b6653e1ed33f16435d04bd2425bc3.
Revert "Revert "cachematrix""

This reverts commit 0a638990eaef6322e1196b5e128a6b319eccb27c.