More memory efficient generation by eliminating isomorphs early