Optimize log message batch sending