Move file system access to a background thread.