Small optimization to plr -- avoid one permutation