reformulate if and only add target to computed_target whenever target was not computed before

2 jobs for 242-distance-map-performance-speed-up in 40 minutes and 8 seconds
latest