cache offsets in memory