Committing matrix inversion caching code