make uuid->sid mapping more robust and (on average) quicker