Moved is_encrypted to avoid compilation errors.