Cached inverse matrix functions