Use a set of linear rules for more efficient rule matching.