added runtime statistics to methods that do crypto