Speed up ID painting.