if you stored them by hash you could deduplicate them
also, if you mean "how do i have multiple filenames refer to one file" it's called a hard link
https://www.baeldung.com/linux/files-replace-duplicates
yes, in the case where you want the user to be able to change the different named files independently then you can't do this but if they are basically immutable then it doesn't matter