Cache rotation matrices