Fast data assimilation and optimal control methods and applications