Cache matrix assignment