Changed secured repository class to prevent BCC issues