Add cache

To avoid build same namespace/interface again and again.