Extend CIDRDatabase to make it faster