factorizing packer_cache