improve performance by batching upgrades when CE polyfill is used.