Work on memory consumption

Work on memory consumption.

hunt of useless instance variables.