1. A method of loading a security algorithm in a fast path of a network processor, comprising: generating a statistic associated with a plurality of communication packets received by the network processor; determining a security attack on the network processor is in progress based at least in part on the statistic; and loading the security algorithm in the fast path of the network processor.