Make library cacheble