More efficient contour integral