Backport to use 2.12.x driver for stability and Bulk API.