In MD, with a CCW, technically you are supposed to leave your firearm locked in your vehicle when you aren’t within the restrictions of your permit.
Personally, I’d rather keep it on me. The only way it will be an issue is if I use it. If I have to use it, the legality of if I was supposed to carry it at that time Really isn’t going to be my main concern.