Oh, you meant looking back through the last k blocks. That was not clear in the OP.
This would not necessarily work since a coinbase transaction can pay to multiple outputs, i.e. pay multiple people simultaneously instead of just one person/entity.
Achow101,
Take another look at my example...
The pool would have a total of 15 BTC that they can assign in their coinbase transaction.
They can assign it to as many or as few outputs as they like. The sum of those outputs just wouldn't be allowed to exceed the sum of the current block subsidy PLUS 25% of the sum of the transaction fees from the 4 most recent (including the current) blocks.
I think there are probably 2 things that make this difficult to implement in Bitcoin...
1. How would it be handled if 25% of the transaction fees results in a decimal that cannot be represented with 8 decimal places? This will result in rounding issues, and difficulty in figuring out if all the necessary fees have been collected.
2. This would be a significant hard fork in Bitcoin, and it would be effectively impossible to get an overwhelming majority to implement it.
Because of issue number 2, even if you come up with a good way to resolve issue number 1, this isn't ever going to happen in Bitcoin. You might be able to get an altcoin to try implementing it though.