Persistent template effect in InAs/GaAs quantum dot bilayers