> Is there some way to fix this whilst still preseving the speed? I don't think it's needed that much, but you could have a stack of static variables instead of a single set, and expand the stack as needed.