Simple algebras in varieties