Migrating script to pf::config::cache