Improve performance on the TCP server class