Update write_hint mechanism to latest API