cache reading isolated in custom libaray