Galat Lua: too many expensive function calls.