sgw: add the smart gateway status file writer