Garbage collection for speed improvements