Minimized DFA using Optimization of DFA Based Pattern Matches