Use merge() to update cache

Change-Id: I53123e305b24ab82ded49eee7190d9b61b1bd22f