Implmentation of inverse matrix cache functions v1