cache visited items in LevelDB