PDIO-174 Update top-K item collector to use temporary directory from config