Optimization of registry consistancy checking at runtime