Preprocess config to reduce connection creation overhead.