Cache the "resolve"-function.