The video tells that each mongodb database has a database key for encryption and that database key is encrypted by the master encryption key.
The question is that when is that master key called to encrypt or decrypt the database key?
Is it at everytime when the mongod process has to write any data or update any data to the datafiles?
Or is it at the start of the mongod process only?
Or anything else?
Also, if it is required only at the start of the mongod process only, then does it mean that the database key is in clear text in the memory always so that it can be used to encrypt and decrypt the incoming new data?