compile atrules in advance

cache the regexp & avoid unnecessary wrapper methods