Attempting to make parsing code reviews faster

Reducing the amount of times get_dev_id (and thus
sanitize_validate_email) is being called. Storing it in local variables
instead.