sigmoid layer backward pass optimization: don't recompute forward pass