Cannot serialize a bytes object larger than 4 GiB - shelve

Yes, true, I was thinking more if there is a way to use pickle protocol 4 from shelve lib, but I will use it directly.
Thanks!