Speed improvement and workaround for GPASYNCHRONOUSMAIL-27

Speed improvement and workaround for GPASYNCHRONOUSMAIL-27. All the information is at http://jira.grails.org/browse/GPASYNCHRONOUSMAIL-27

Regards, Iván.