Optimize searchPossibleTargets