This plugin written by a friend of mine gets certain key values from certain entities so that it can change them later. It uses the key value forward and basically processes all the key values at the start, saves the entities and then it references them later.
Maybe you can do something similar to get the value that you're looking for.
__________________