Cast the pages * LOAD_FACTOR to be a long first

Make sure the entryCacheBytes be divided by the page_size. Previously,
there is a bug there since the total entryCacheBytes may not be divided
by the page_size.