add additional assertion to check if file is encrypted