Use unsafe swaps, improve performance 23%