When consuming S3 stream in put_data_to_cache, we can also send data to network, so there is no need to call get_data_from_cache again.
But importantly, we must modify the pin/unpin logic introduced by #50, since now this logic depends on every put following by a get.