Cache dependencies

This is going to take long...