I keep the magazine separate from the pistol just in case.
For just over $100 you can get a handgun safe with an electronic lock, push button, fits your hand so you can use it in the dark. 64,000 possible combinations, pick one to your liking. The 2 gun model costs a little more. I have 2 loaded handguns safely stored, yet available very quickly. Note that neither is a .22, thats locked up down stairs, these are a little bit larger. :)