Trying to improve memory profile.