hi my experience is :This issue has occoured for me on LOS multiple times even on a stock kernel. Seems to be a ROM-side problem on LOS based ROMs but who knows.
oos even stock kernel
on encrypted phone:
u will see phone starting msg always if u got your sd 30gb+
without screenlock is always there ,with any lock its "shorter". time is the same - lock appears.
it gets longer if i add to my sd card 40gb movie, i believed its the mediascan, or any parallel bgtask wich runs under boot.
Something is wrong on kernel side,
(first boot is fine)
boot takes forever, wifiscan takes forever,
and my phone gets connected always to a 2.4ghz , not to the 5ghz.basicl it grabs the first 2.4 and stops scanning.
compared to stock kernel:
wifiscan very slow (always),
on boot wifi turning on "much later"
isnt that just because the cpu freq is set from boot 19xx or i cant get stick any higher freq at boot