A nanoparticle includes a carbohydrate carrier and a bacteriocin. A method for prolonging efficacy of a bacteriocin against a food pathogen includes providing the bacteriocin in a delivery system, and inhibiting the food pathogen by the bacteriocin. A duration of efficacy of the bacteriocin against the food pathogen when the bacteriocin is provided in the delivery system exceeds a duration of efficacy of the bacteriocin when the bacteriocin is provided without the delivery system.