For preparedStatements keep actual values in the most recently executed queries buffer.
Something like this:
select * from table where name=? and age>? (steve,30)