Taking a second look, byteOverhead may be local variable, and shouldn't be called overhead as it contains the value size.