1. A storage controller device, the storage controller device comprising: a volatile memory; a non-volatile storage; an application specific integrated circuit (ASIC); transfer logic residing on the ASIC, the transfer logic configured to copy, upon a power loss, contents of a write cache in the volatile memory to the non-volatile storage; an instruction memory; and a processor, communicatively coupled to said instruction memory, the storage controller configured to perform a method comprising: retrieving, at run-time, one or more operating parameters of the transfer logic, the one or more operating parameters including an instance-specific process speed of the transfer logic, wherein the instance-specific process speed is retrieved as bin data; determining a voltage of the transfer logic based on the instance-specific process speed of the transfer logic; calculating an energy consumption rate of the transfer logic during the copy upon power loss, wherein the calculating is based on the voltage, a current temperature of the transfer logic and the one or more operating parameters that are retrieved at run-time; determining a size for the write cache in the volatile memory, based on the energy consumption rate and an amount of energy in an energy storage element that powers the copy upon power-loss; and allocating the write cache, of the determined size, from the volatile memory.