Generative Pretraining for Black-Box Optimization