More efficient fetch code