That won't work because when this is wrapped with `eval-after-load` emacs still complain about non-safe values in the local variables list. Also we would have to make sure that the keywords get added in the proper buffer. Once code to do that is also included in the local variable list the respective entry will look quite scary.

I have a better solution which I will push in a minute.