Memory impact from gateway scripts?

I have a gateway that was using about 400 mb. I added 8 gateway scripts, each using about 6 to 12 tags for Tag Change trigger. The scripts are nearly identical and documented in my prior post about alarm consolidation; they are about 20 lines of code. I notice the memory usage on the gateway nearly doubled. I would not expect such an impact. There were no other substantive changes; I added 24 memory tags which should have negligible memory impact. Should gateway scripts have such a significant memory impact?