Replaced extraneous std::set use with std::vector for our precious outer loop performance.