More speed improvements for RGB processing