Moved AWS operations to a different thread