Polynomial algebras and smooth functions in Banach spaces