Lazy initialize attributes for active record