cached Object.prototype call out of loop