dev+: cache prepared statement in dynamic contexts