Timing moves

Moved timing commands inside the encryption try blocks and closer to
the encryption code