Perhaps move this condition into `ShiftStreamToFileStreamIfNecessary` + do the same with the code in `Write` - keep the logic in one place