Can I decrease MemoryStream capacity in FileTarget somehow?

Hi!

Here is my target configuration

<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <targets>
      <target name="logfile" xsi:type="AsyncWrapper" queueLimit="5000" overflowAction="Discard">
        <target xsi:type="File" layout="${message}" keepFileOpen="true" openFileCacheTimeout="30" encoding="UTF-8" createDirs="true" fileName="${appsetting:name=LOG_PATH}${appsetting:name=INSTANCE_NAME}/Logs/${shortdate:universalTime=True}/External/${appsetting:name=INSTANCE_NAME}_API/${logger}_${level}.txt"/>
      </target>
    </targets>
    <rules>
      <logger name="*" minlevel="Trace" writeTo="logfile">
      </logger>
    </rules>
    <extensions>
      <add assembly="NLog.Extended"/>
    </extensions>
  </nlog>

FileTarget uses ReusableStreamCreator that internally working with MemoryStream. Turns out that when you log big message, capacity of MemoryStream gets increased and that capacity is never being recalculated as far as I can tell, so there will be wasted memory space after unusually big message.

We could always try slicing up long messages to smaller ones on our side of things so that MemoryStream never becomes big at all. So my question, is there another way to free up memory space taken by MemoryStream with configuration or something?

Sorry for the grammar!