Adapted mean caching system to matrix inversion