Optimize uniq[With]

These are hot methods relied on internally. They shouldn't be abstracted as much as they are