I have had good success with the way my grandmother taught me: Boil bean for 5 to 10 minutes,take from fire (turn off stove) and cover the bean port ,I even cover with an old blanket to retain heat ,and let it sit without need for fire,for 4 to 5 hours... restart and boil/simmer(add meats or spices) for one hour and test as some dry beans take a bit longer to fully cook. This saves fuel and cooks in much less time involved.
I would 'can' cooked beans with as little oxygen in the jars and avoid light and heat for up to six months storage time but I cheat and buy factory canned beans as I can't even beat the cost of, longer storing, factory cooked and canned beans that store years longer than the 'best by date' and require little effort to cook and consume and I have consumed canned (in a real can) store bought beans well over 5 years beyond the 'best by' date code with no noticeable loss of texture,color,or taste I buy then when on sale and usually many cases at a time often for under 30 cents a can. I believe in taking advantage of technology while it is available and find it economical at the same time.
Note that I do have seeds available for when I must grow what I eat but see little reason with current supply so available. I find commercially canned goods acceptable trade off with the availability and economy of factory canned good though also will cook from dried stock when I have time ,and fuel,or when the BOL needs a bit of heat and humidity added.
NOTE that any added fats should not be in the beans as it can really cause jar/seal problems as well as lower storage times...this is why the factory beans are easier and lower cost for my needs. I might suggest a wax seal for longer term storage of home canned products and have used canning wax ,actually paraffin, to keep product fully sealed from air and better storage times.
Just my thoughts on this