Cached matrix