http://blog.libtorrent.org/2013/12/memory-cache-optimizations/