Check for long keys during initialization