Found a memory leak in the "remove" query logic. Fixed it.