Dynamic Memory for Interpretable Sequential Optimisation