My solution to the inverted matrix cache