Would a /24 public ip range typically be from the same country? This to reduce the amount of ipstack requests, checking from what country an IP is. (due to bot requests)
/24 is the longest prefix you can advertise over BGP, so it's generally atomic within an AS. However, there's nothing stopping the AS from routing each single address to different parts of the globe.
Accordingly, a /24 network within a single country is likely but there's no guarantee.
If you've got some kind of check-country-before-reply mechanism running, you should cache the results and base the cache on the queried subnet, not on each single address.
And of course, any geolocation query should always be taken with a grain of salt, as it's roughly 30% guesswork.