mali: cache and memory optimizations