Barcelona star Dani Alves says he is optimistic that he will agree a new contract with the Spanish league leaders "as soon as possible".