Improve multithreading in response sending