Coded matrix inverse calculation and caching