Optimizing the sendgrid mail transport with additional logging