Faster version of BaseThrottle.convert_identifier_to_key().