[Driver] Don't open files multiple times.
[ELF] Cache contentType and permissions.