improve assign_payor_category speed