Implement inverse matrix cache functionality.