cache class lookup in reader