Os Optimizations

This heavily reduces RAM usage of os.
This saves me 100-150 mb of RAM on my note 2.
This for very useful with devices with >1 GB RAM.

Change-Id: I24a211e4948945d2c0fb463a9fd9fb0553ef5587