move time helper function to utils
move the function to expire results out of the DHT wrapper