MDL-42965 badges: Improve badge criteria review performance