Inverse matrix cache

Inverse matrix cache