Does encrypted DB stay encrypted in iCloud?

It’s only necessary to specify an encryption key for the sync store, then it will always remain encrypted in the cloud. Locally it might be encrypted or not.