Take the cache size into account when calculating the maximum size of a page in-memory

Use that calculation in the decision to deepen internal pages.

refs #486