fixed an issue with the cache not caching all the bytes