Per-pattern prefix support