Implemented piecewise loading for faster caching