Enhance Efficiency and Safety in Pruning Tasks