The impact of smart completions on optimal well trajectories