box paint optimization