Since you didn't mention children...
Leave it out on the table, next to a quality flashlight your bedside table. Put a fully charged, cell phone on your wife's side and leave the phone on with the ringer off.
I'm presuming you have an alarm system and if you don't, you should.
When I said that's what I did (when I lived in Ma.) it threw the sheeple here into a hissy fit. Martha's minions are NOT going around doing 3:00AM "safe storage" checks executed by SWAT teams with no knock warrants.
Your pistol will not jump up in the middle of the night and kill everyone in the room, the world will not end and IF something really does go bump in the night you'll have one less thing to worry about.
You have a choice comply with the letter of the law or choose to survive a home invasion.