Optimize PPM writer