Alternative for QuickTextQuery matching: creates more garbage but needs no thread synchronization