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