implement kHash logging during autotune using for loops