script generation speedup: 0.2185 -> 0.1829