Not that it is a panacea, but you can/should configure Keepass to autolock the database after inactivity. I believe the default is something like 4 minutes, which should kick in before any kind of hibernation or paging would occur.
Then you have to type the whole password again or your auto-type and plugins don't work. If you keep it open all day for random login needs then this can be a hassle.
Full disclosure, I sell a paid KP2 plugin to soft lock the UI. (It won't protect memory or dumps but does prevent naive snooping.)