optimizing color value storeage/transfer