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