My solution is to have 3 kids. Peanut butter has no chance of spoiling around here, we go through it like it’s going out of fashion! On a more serious note perhaps simply buy a smaller jar if it spoils before you eat it all.
Loves cake tho. Little debbie snack cakes, pancakes, waffles, cup cakes.
But not donuts, bread, croissants or thick pizza.