[#49549285] reduce memory overhead of Schema#refresh_datasets