Ok so there are three core problems I see here that need to be addressed first because it seems like you're trying to solve some problem in a completely wrong way:
I believe we can find a solution to your problem that's better in all aspects.
is it better to run the node locally ?
Depends on what exactly you're trying to accomplish