Matrices inverse operation caching