More thorough memory tracing
Better tracking of memory use and removing gate mem-use on startup