Jan 24, 2018 These are prescribed to treat anxiety and sometimes sleep. use as a sleep aid because they can impair memory and require higher doses over time to achieve the same effect. The other class of medications is narcotic analgesics. However, one of these drugs, Benadryl (diphenhydramine),...