Implementing matrix inverse cache