Only write to the entry lock file once per page load.
Only run derived value calculations when specifically requested, to avoid running them when building forms for display.