Optimized meter rewriting.