Ensure uniqueness of generated ids