reduce memory garbage in DocSamplingActor