FX margin optimization