Set byteArray position to 0 in case of cached data