Optimal responsible investment