Marotta 'optimistic' Pirlo will sign