Add size-based cache expiration

Maximum cache size is configured via `cache-files-maxsize` key. By default  it is 300 megabytes.