Optimal Pricing, Inflation, and the Cost of Price Adjustment