Optimize InetAddress restriction