An optimization in updateCache in BasicShuffle