Improving performance during reading from TCPSocket by using select instead of starting a new Thread for each bucket