Credit: Change was contributed by @jondthompson
Most of the change is outlined in the issue this resolves by creating a dictionary for the eiscp connection, then reusing it for zones that have the same IP address.
The only other thing I did in here is line 71, which changes the zone variable to all lowercase, eliminating the possibility that it can be wrong due to case issues.