Calculate derived values once only