There are many ways to store a firearm when not in use. The National Shooting Sports Foundation video below goes over a few of those. I am in the market for one of those quick-access lockboxes myself.
One thing I might note. If we don’t take storing our firearms safely seriously, someone aka big government will do it for us and I doubt they’d get it right.