All sleep medication should be used with caution in the elderly, as they can cause cognitive impairment, including amnesia. 

https://recoverypartnernetwork.com/drug/sleeping-pills/ambien-addiction