Some optimizations for smart iterative