Make cache size configurable