FLEX-33829 improve create UID performance and use
New algorithm using ByteArray around 4x faster than original.