Cache matrix