What filesystem best suits my needs?
- Thousands or even millions of files in one directory.
- Good (ext4 & ntfs level or close) reliability (incl. fault tolerance) and access speed.
- No directories actually needed, as well as descriptive names, just a dictionary-like structure of id-blob pairs is all I need.
- No links, attributes, and access control features needed.
- Having storage-level closed-key data encryption (so that if the hard drive is lost or stolen, no one can make any use of its content) would be cool.
The purpose is a file storage where all the metadata (data describing all the facts about what the file actually contains and who can access it) is stored in a MySQL database.
As far as I know common filesystems like NTFS and ext3/4 can go dead-slow if there are too many files placed in one directory - that's why I ask.