TYRUS-371: Introduce an option for using a custom masking key generator