Defining good unique identifiers for your data isn't always obvious with both security and performance impacts to consider. Check out this article, where you can see potentially better solution with an explanation of the risks and benefits!