Optimized regex engine further