Improve the method of checking export privilege.