I think the uniform part is more for the traveling public then security. They don't want to give the impression lots of people are bypassing screening. They know the public will not have a problem with the pilots bypassing. In any regard it takes me about 45 seconds to duck into the bathroom and whip off my shirt and switch to a regular shirt.