Would it make sense to cache the `$localFile` name in case filesize is called in the same run as `isEncryptedPath()` ?

On the other hand, as discussed, we should probably rather make `getLocalFile()` return the same file name when called multiple times in the same PHP run. (CC @icewind1991 )