Massively speed up the location swapping process for the simplesim