Performance increase matching existing records (rev. 12)

Signed-off-by: nixnodes <code@eth.si>