cache inverted matrix