Creating pattern as static field only once