Improve perfomance of Lua event listener / insert events in bulk