For efficiency, I would prefer to store files with a random short filename that's just letters and digits and store the original name in a separate database.