Switch compiledFormulas_ to std::atomic