Enhancing Estimation and Uncertainty Quantification in Stochastic Optimization: Importance Sampling and Bootstrap Resampling