moving profile_lookup_table formation outside before calling individual calculate_applicability functions for rpm and errata to improve performance