Fixed incorrect usage of pyrocache, closes #343