Heat treating flour before using it in the cookie dough buttercream helps to ensure that the bad bacteria is killed.