Efficient nonparametric regression with autocorrelated samples