Switch to xml-stream. Add initial way index
Switch to using custom OSM write stream