This paper discusses the design and implementation of dynamic optimizations in DigitalBridge, a dynamic binary translator. It proposes an edge profile based algorithm FHFS to select hot traces upon which the optimizations are carried out. Two optimization methods are presented: patternized instruction pair translation and delayed-status-flags-simulation optimization. Experiments show that these optimizations can improve the performance by 40% on average.