only check if the key file exists to decide if it is an encrypted file or not

This solves problems with external storage which doesn't support fseek, e.g #5950 

@PVince81 can you give it a try? Thanks!