Optimize memory usage (allow processing 10000x10000 RGBA textures)