Access Workers methods from standalone utility say golang to access KV records

Hi, Instead of using workers to do some routine cleanup and nightly process of the KV records, I am planning to write a golang or as fallback a nodejs utility that would go in and cleanup and do maintenance to hundreds of thousands of records nightly. This may reside on AWS EC2. I do not wish to use API as they may limit my access to 1200 requests only.

  1. How do I use the Workers methods in programs outside workers. Or
  2. If that is not possible how do I whitelist my IP so, I can use API and at the same time read and update millions of records in minutes.

Note: I am not running the golang inside the workers, it will be on EC2 machine elsewhere.

Regards!