Reuse some prepared statements to reduce overhead of creating them for each file