optimized nuke target lookup

Signed-off-by: nixnodes <code@nixnodes.net>