Here the old `entries` is still in scope. Should I call `collect_garbage` at a later point here too?