Add configuration support for CIDR and database caching