Squash RWSEM optimizations from faux123