Dictionary cache regression

Thanks, issue in progress.

Looks like Callum did this feature in

and then regressed here