Removed byte array from primitive writer pmap logic for performance.