Optimizes some of the character patterns