The code at one time used cached responses for in range bools, but it seems that does not improve performance. Some IP addresses are allowed multiple times, so min() and set() are used to find the distinct values.