Android ZRAM Optimizations: adapted from Samsung JF series kernel