Compiled, encrypted macros are not secure: some source code may be visible in the compiled macro file. Specifying the sensitive parameters in %LOCAL variables may keep the information hidden.
Thanks to Thomas Billings for this tip. Read more details in this paper from WUSS 2017: Secure MacroBased Method to Assign LIBNAMEs for Databases.