Caching version of matrix inverse computation.