Avoid unneeded getconfig calls