Most CI vendors offer caching directories between builds, and then you set the pip cache directory. Failing that, I made a proxy server that can work transparently if you can set default environment variables: check out proxpi
proxpi is exactly what I was looking for, thank you! The straightforward Docker installation is especially great, I can have it running with one command.