Would you feel more at ease if this was resolved by creating a custom template tag, then in the loop of layouts (in the template), passing the key as an argument?

http://stackoverflow.com/a/6819416/1691712