caching inverse matrix assignment