Optimized dump-keys's worker