cached matrix