We study the asymptotic Dirichlet problem for A-harmonic equations and for the minimal graph equation on a Cartan-Hadamard manifold M whose sectional curvatures are bounded from below and above by certain functions depending on the distance to a fixed point in M. We are, in particular, interested in finding optimal (or close to optimal) curvature upper bounds.