Revert golang impl to write intermediary files