Caste consciousness existed across religious communities.