Memory stats improvments