Cached matrix inverse functions