improved performance when using node/fork with mask mode.