Matrix cache