Cache result of find_packages_allowing_duplicates to speed up find_packages