S-duality invariant perturbation theory improved by holography