Mark cached queries in log (Feature Request #405)