Fix issue with parsed statement cache timing - closes #665
Merge pull request #668 from brianc/issues/600-redux

Fix issue with parsed statement cache timing - closes #665