Cached matrix inverse based on example of cached vector mean computation.