Removed an unnecessary cast and removed the PlaintextIterator since it's
not used.