Running the disk and shard creation in a background thread.