Allow for the caching of a matrix's inverse