optimize sqlippool scheme