Making Better Use Of Memory In AI Applications