Is this really needed? Shouldn't the postGetFileInfo and postGetFileSize proxy already handle it? https://github.com/owncloud/core/blob/master/apps/files_encryption/lib/proxy.php#L292