Best performance of a C++ singleton