Cortex + zram + cache clean, Optimizations tuning and cleanups.

Removed useless checks speed up the scripts.