Efficient Optimization of Cutoffs in Quantum Repeater Chains