Is it possible to preprocess source?

You cannot do that, that is not what _source is for. You should be doing that to fields instead.