I don't think there can be. Blocks are not held as variables and then populated in the template when it's displayed, instead they are compiled once and are then static for the cached template.
Template inheritance is a compile time process which creates a single compiled template file. Compared to corresponding solutions based on subtemplates included with the {include} tag it does have much better performance when rendering.
It's hard to give advice about how to do what you want to do, as you're quite vague, but you can probably do what you want with a block function