adding caching to the offset finder #1