Delay attachment purging until compact() is called