Prevents double memory allocation in `setDocument` endpoint
Prevents double memory allocation in setDocument
endpoint by passing a req object as a content parameter of saveContentToTempStore and using of req.writeToFile instead or reading content into JS memory