Walmart has worked to cut costs over the past year in some areas as it gives priority to spending elsewhere. Last month the company said it would shut all 51 of the health clinics it has opened over the past five years as it tried to build a bigger healthcare business.