This should be cached in a static variable for performance reasons. From official Javadoc documentation of the Pattern class:

_Instances of this class are immutable and are safe for use by multiple concurrent threads._