Is there any possibility to implement it with others streamings in fopen - like static files? Maybe user would like to log every action from this feature into customized logs. 
I think the solution is make new protected field predefined with php://memory, but with access to switch it by user.