remove hash lookup and unused comments
return raw data size as bufferSize in dictionaryValuesWriter