perf: optimized text scans