Yes, good idea. Similar to that, I found this flashlight holder that holds the chili-pepper spray snug.
Funny story because I spoke to some alibaba.com suppliers and they suggested a flashlight holder. Then I found one an Amazon.