Cache rewrite table and rules