Cache inverse matrix