Make IPC cost and nsCacheExpiration as parameters