[core] reduce number of hard replacements (avoid slowness)