A Metadata-Driven Optimization for Sampling Simulation: A Metadata-Driven Optimization for Sampling Simulation