Near-Optimal Approximations for Bayesian Inference in Function Space