diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index bd98b98bbadd151a1ee6605d4160c767aa41a677..c1c26d7754f31c9498ce6983bbef6028c47a9b93 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -107,10 +107,9 @@ class OC_FileProxy_Encryption extends OC_FileProxy{
 	}
 
 	public function postGetMimeType($path,$mime){
-		if((!OC_FileCache::inCache($path) and self::shouldEncrypt($path)) or self::isEncrypted($path)){
-			return OC_Helper::getMimeType('crypt://'.$path,'w');
-		}else{
-			return $mime;
+		if(self::isEncrypted($path)){
+			$mime=OC_Helper::getMimeType('crypt://'.$path,'w');
 		}
+		return $mime;
 	}
 }