Solved cache inverse matrix assignment