This is leaking the previous contents, you need to load the contents, store the new contents, and then possibly drop the old contents.