I don't think that this works: The PARAMETERS flag must be set before you optimize a variable (not afterwards). Can you check?