The only thing you need to have filled out is the customs form.
I always get detained by CBP so I always get there 3 hours before the flight and never have had issues, until this month (staff cutbacks)? I don't think that customs is ever closed and AA in YYZ usually will process you well several hours in advance with no issues.