'missing labels' detection speedup and simplification