Store globals in upvalues in gumbo/Buffer.lua