Build tdb index once for workers