optimize effects list before generating command