takeout some imports
reduce lookup for ApiKey using filtering