someone in another thread raised this point- there's alcohol in the beer at that point, if you do it at secondary, the alcohol in the beer should take care of the extraction, as well as ward off contamination. I would probably add the spices dry to secondary.