Dupe check optimized for speed more (rev. 5)

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

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