Clean up
Memory optimization (Credits to AOSPAL)
Various Optimizations - credits to ctfrommn