cachematrix solution