Cache results of function_exists