Optimize Shadowsocks and Redsocks2 ipset init procedure