Improving tree stability with optimized pruning: a comprehensive cycle method | Synapse