Is it wise to add this middlewares on all API controllers ? The controllers that are not about baskets will check for basket attribute in URL this is maybe a performance issue ?