There are those Google accelerators that plug into an M.2 slot. You could plausibly do this today, although I am not sure what sort of memory constraints those accelerators have.
It’s used for boosting interference (offline) on Linux, Mac and Windows.
Haven’t bought or used them but I’ve had my eyes on these for a little while!