Optimized Data rewrite