Load time weaving for external cache