Only the first call actually compiles the statement. However, if it is the same application that is responsible for the compilations unnecessary communications may be used. The application should consider caching the SQL statement by reusing the statement (use single Prepare and many Execute; the actual name of the calls used depends on the database interface used).