Caching inverted matrix