simplify dependency & cache key calculation (code is in namespace calculation now)