performance improvement in messageSender