This isn't a bad idea.
During combat, players tend to see any action that's not HP altering as a wasted turn. Spending the resources to gain stat bonuses between battles, so you can optimize monster stomping makes your turn economy more efficient AND gives your party members something useful to do outside of combat.
If the buffs run out over time, it also becomes an interesting resource management conundrum. You may have the stats (with buffs) to get to the bottom of the dungeon. But when the MP starts to run out, do you have the stats (without buffs) to get back up?
During combat, players tend to see any action that's not HP altering as a wasted turn. Spending the resources to gain stat bonuses between battles, so you can optimize monster stomping makes your turn economy more efficient AND gives your party members something useful to do outside of combat.
If the buffs run out over time, it also becomes an interesting resource management conundrum. You may have the stats (with buffs) to get to the bottom of the dungeon. But when the MP starts to run out, do you have the stats (without buffs) to get back up?