Added the inverse matrix cache