reduce extra api operation
add performance counter