RE: optimization and rewrite rules questions