qcow2: use a hash to look for entries in the L2 cache