Cached matrix inverse computation