Although it is advisable to feed freshly cooked and mashed foods for babies, you may store leftover cooked beans in an airtight container in the refrigerator for a few days. You may freeze them in small portions if you want to keep them longer. Thaw the frozen beans in the refrigerator overnight before reheating them for your baby.