JCR-2358: Auto-registration slows down the creation of a session