Make configuration thread safe