Remove the check for function args and instead make required function parameter
replaced meta key and prefix key with generic keyGen