Performance. Stop after it found the valid entry