Optimizations; also return if zero-length cmd
bench/ tweaks