TST/BUG: using the right type of cache