REPORT-643 - Only persist report data to file if there is no rendered output associated with the report
REPORT-644 - Improve performance of serialization to disk by writing in a streaming fashion
REPORT-644 - Improve performance of serialization to disk (followup fix to ensure output stream is closed)