[V20][PCIE] Revise security flow

----------------------
make cam code more easy to view
and prepare for concurrent function