I didn't look at this very carefully, but we need a way to clean this up. Otherwise it will keep growing and eventually OOM.