Remove ghost notes when actual notes are deleted, and ensure the _optimization_iterat...