convnet: Avoid little code duplication
cache: Use joblib's  instead of  to persist.