Revert "Temporarily disable memory pool queries"

This reverts commit 082aca4818cbc2387669664fec8aedc63f2b6a65.