Address intermittent S3 error

The s3 bucket is being shared between threads and is lazily initialized,
potentially leading to one thread accessing it while it is still being
initialized.

Prepare the command to run before starting any threads instead of each
time a host connection is established.