It turns out it was way easier to do than I thought initially. Once it clicked that this is basically just replicate layout but across different files it was quite easy though. Anyhow you might want to take a look at Save/Restore layout action plugin.