merge_items speedup

Change-Id: I000dae4e8dd0f6bf546ebdae1e8ae69c06f5f44b