Further optimizations to Dissolve.