...ten billion? What the hell servers are you running this on? Is this normal?
Some live stats http://ip-api.com/docs/statistics
Assumption is that every IP (all 4.3 billion) had about 100 bytes of data stored about them. That is ~430gb of storage runs you $30/month. The 10 billion queries to that storage costs about $360/month. ($.0036 per 100,000 transactions)