added a Flag to control do_metadata_warmup ON/OFF