V8 Should handle this under the hood. I havent actually tested it but now the function is so small, and all it does it grab an attribute, that V8 should inline it in the calling context once theres enough use of it. Expect 1 or more calls to it per client method call. This should result in optmization and inlining, pretty fast. If you would rather attributesKey referenced directly its a trivial change.