Unique filenames with streams support