Cache inverses of invertible matrices.