Optimized Lua reevaluation