Refactor wacs--get-config

Avoid unnecessary lookups