Improve queries in server ip pool