New serializer for generated keys