[Antonio] Matrix inversion solution with caching capabilities