cache frequency mask to prevent shifting loop