allow overriding of secret key secure mode check