Update the strategy to optimize the trace log

Signed-off-by: Herbert Rocha <herberthb12@gmail.com>
Minor changes

Signed-off-by: Herbert Rocha <herberthb12@gmail.com>