Preparatory work to have a PIP cache, this is awfully slow.