Constant-time lookups. How useful this is depends on how many urls will be cached. Fewer than a hundred (maybe many hundreds, I haven't done timing on it recently) and serial lookup in an array is as fast or faster than a hashed lookup in an object. But the rule of thumb is to use an Object (or Map if that is available) and not worry about how big it grows.