luacy optimizations