Enviar por SMS: Stochastic control of hereditary systems and applications