faster bin-to-hex-str and timestamp implementations