On-the-Fly Pruning for Rate-Based Reaction Mechanism Generation