Use a global Lua state, and not one per file
Remove unused and commented code