Optimal and Approximate Adaptive Stochastic Quantization