Fixed issue with unitialized axon
Added a cache to store compiled regexs to improve performance