Improving the Performance of DNN-based Software Services using Automated Layer Caching