Avoid extra queries for DocumentProxy objects