Trying to further reduce ram usage