RegistrationKey to struct - slight speedup