I think a dual approach of lazy lookup and documentation is needed here:
Change code so it only performs a lookup if needed
Mention under "Gotchas" that if the Key has not been defined then you get an error. Easy to fix by creating a Topic with built-in encryption and then deleting it
I think a dual approach of lazy lookup and documentation is needed here: