added mkDirs for /tmp/slices directory
moved stats to STATS block to avoid extra computation.  nanoTime is fairly expensive as well.