cachable matrix inverse