  We construct algebras of endomorphisms in the derived category of the
cohomology of arithmetic manifolds, which are generated by Hecke operators. We
construct Galois representations with coefficients in these Hecke algebras and
apply this technique to sharpen recent results of P. Scholze.
