improve securityutil check performance