Cache prepared statements