Reduce std::exp() by adding exponents first