Reviewed-by: kvn, jrose, phh
Summary: Eliminate allocations and vectorize Reviewed-by: mullan, ascarpino