cache parsed sql statements