Revert crypto_init() to use config_get_global()

Following fix for issue #17263, it is no longer necessary to rely on use
of global variable.