Refactor pf::config::cached