Use memory for shuffle (faster)