Tidyup footer to reduce duplicate config_get calls

f5447bf9cec408ee250aa2a4f09872aa748788ff