cached inverse matrix