Some optimization on get project from the api