Two men have appeared before court charged with possessing information around police officers from a major data breach in 2023.