LOL i dont know if theres much you can do to curb this behaviour as cats are generally pretty stubborn pets. you can take comfort in the fact that animals generally find a hiding spot for their their things and stick to it, so there probably wont be too many other caches of worms around your house. stop giving her treats!
hahaha