Configurable sizeOf engine for Ehcache