tl;dr: Try commenting out or deleting line 441 of bdDataStorage_StreamWrapper_Abstract related to unlinking the file, which is this: "@unlink($this->_openedFileTempFile);"
bdDataStorage_StreamWrapper_Abstract -> stream_open() calls _tryDownloadFile(), which checks the _downloadedFiles array...