Prepare library caching