Fixes #141. Avoid calling NoKeyGenerator in a batch.