FIX: Create cc::input instance once

Do not create a cc::input instance more than once.

Other:
* Set n to input_urls.size only once

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>