Modified the key generation of the unique key to be even more random and unique.