Remove superfluous keys during initialization