Shipping cost affects cheap (compare to mass/volume) products but in RAM price shipping is a negligible fraction. Where Iran war affects the more AFIK is the cost of credit which slows investments into new capacity by the manufactures. All thing being equal low interest rates allow to expand capacity faster.